/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.com.nextel.idioma;

import java.io.IOException;
import org.kxml2.io.KXmlParser;
import org.kxml2.io.KXmlSerializer;
import pe.com.nextel.rms.DataInputStreamX;
import pe.com.nextel.rms.DataOutputStreamX;
import pe.com.nextel.rms.PersistenteX;
import pe.com.nextel.util.ArrayList;
import pe.com.nextel.util.List;

/**
 *
 * @author wpalacios
 */
public class IdiomaBean extends PersistenteX {

    public String valor;
    public String id;

    public void persistir(DataOutputStreamX dataOutput, List list) throws IOException {
    }

    public List recuperar(DataInputStreamX dataInput) throws IOException {

        List lista = new ArrayList();
        IdiomaBean bean = null;
        int cant = dataInput.readInt();
        for (int i = 0; i < cant; i++) {
            bean = new IdiomaBean();
            bean.recuperarItem(dataInput);
            lista.add(bean);
        }
        return lista;
    }

    public void recuperarItem(DataInputStreamX dataInput) throws IOException {


        valor = dataInput.readString();
        id  = dataInput.readString();


    }

    public void writeXMLObject(KXmlSerializer writer) throws IOException {
    }

    public void readXMLObject(KXmlParser parser) throws IOException {
    }
}
